package com.flame.workflow.ru.engine.handler;

import com.flame.workflow.ru.engine.context.RuntimeContext;
import com.flame.workflow.ru.entity.Task;

/**
 *
 *
 * @author wuxintong😺😺😺
 * @since 2023/6/6
 */
public interface TaskHandler {

    String taskType();

    Task startTask(RuntimeContext runtimeContext);

    String runTask(RuntimeContext runtimeContext);

    void finishTask(RuntimeContext runtimeContext);

    boolean handleError(RuntimeContext runtimeContext);
}
